package gui;

import javax.swing.JFrame;

/**
 * Wir brauchen nur ein Mainframe. Daher wird dieses als Singleton implementiert
 * 
 * @author IHA
 * 
 */
public class MainFrame extends JFrame{
	private static final long serialVersionUID = 6676617903048645328L;
	private static MainFrame instance = null;

	protected MainFrame() {
		setTitle("Bundesliga 2012/13");
		setSize(1024,768);
		setVisible(true);
		setResizable(true);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setLocationRelativeTo(null);
		add(MyTabbedPane.getInstance());
	}

	public static MainFrame getInstance() {
		if (instance == null) {
			instance = new MainFrame();
		}
		return instance;
	}
}
